package com.iss.yunpan.service.impl;

import com.iss.yunpan.dao.IndexDao;
import com.iss.yunpan.entity.Users;
import com.iss.yunpan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    IndexDao indexDao;
    @Override
    public boolean changePassword(Users users) {
        try {
            indexDao.changePassword(users);
            return true;
        }catch (Exception e){
            e.printStackTrace();
            return false;
        }
    }
}
